package com.gcxx.framework.security.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.gcxx.framework.base.action.BaseAction;

/**
 * <strong>Title : LogoutAction<br></strong>
 * <strong>Description : </strong>注销用户Action<br> 
 * <strong>Create on : 2012-8-31<br></strong>
 * <p>
 * <strong>Copyright (C) <br></strong>
 * <p>
 * @author 郭毅<br>
 * @version <strong>GCXX_FrameWork3.0</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人		修改日期		修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class LogoutAction extends BaseAction{

	/**
	 * <code>serialVersionUID</code>-注释
	 */
	private static final long serialVersionUID = 8929240979191313646L;
	
	/* (non-Javadoc)
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	public String execute() throws Exception {
		HttpServletRequest request = ServletActionContext.getRequest();
		HttpSession session = request.getSession();
		session.invalidate();
		return SUCCESS;
	}

}
